package org.example.myleet.p1423;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(12 == solution.maxScore(new int[]{1,2,3,4,5,6,1}, 3));
        Assert.isTrue(1 == solution.maxScore(new int[]{1,2,3,4,5,6,1}, 1));
        Assert.isTrue(4 == solution.maxScore(new int[]{2,2,2}, 2));
        Assert.isTrue(55 == solution.maxScore(new int[]{9,7,7,9,7,7,9}, 7));
        Assert.isTrue(1 == solution.maxScore(new int[]{1,1000,1}, 1));
        Assert.isTrue(202 == solution.maxScore(new int[]{1,79,80,1,1,1,200,1}, 3));
    }
}
